﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.DrugTrade.Model
{
    /// <summary>
    /// 采购单明细简单实体类
    /// </summary>
    [Serializable]
    public class PurchaseOrderDetail
    {
        /// <summary>
        /// 采购单明细编号
        /// </summary>
        public string OrderDetailID
        { 
            get; 
            set;
        }

        /// <summary>
        /// 流程编号
        /// </summary>
        public string FlowID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单编号
        /// </summary>
        public string OrderID
        {
            get;
            set;
        }

        /// <summary>
        /// 企业编号
        /// </summary>
        public string CompanyID_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录编号
        /// </summary>
        public string ProcureCatalogID
        {
            get;
            set;
        }

        /// <summary>
        /// 当前执行节点:在开始制定采购单时，根据选择的流程，将流程首节点写入;在流程的执行过程中,当当前节点对应的操作执行完毕,则将下一个节点写入(或者返回上一个节点)
        /// </summary>
        public string CurrentNode
        {
            get;
            set;
        }

        /// <summary>
        /// 采购数量
        /// </summary>
        public int? PurchaseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Price
        {
            get;
            set;
        }

        /// <summary>
        /// 采购金额
        /// </summary>
        public decimal? Amount
        {
            get;
            set;
        }

        /// <summary>
        /// 执行时间
        /// </summary>
        public System.DateTime? ExecuteTime
        {
            get;
            set;
        }

        /// <summary>
        /// 状态标识:0未确认;1已提交;2已确认（已确认的采购单，就不可以再修改了）
        /// </summary>
        public int? OrderDetailState
        {
            get;
            set;
        }

        /// <summary>
        /// 已配送数量
        /// </summary>
        public int? DistributeCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量
        /// </summary>
        public int? WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已退货数量
        /// </summary>
        public int? ReturnCount
        {
            get;
            set;
        }
        /// <summary>
        ///拒绝配送理由
        /// </summary>
        public string Reason
        {
            get;
            set;
        }
    }
}